<!-- TODO 查看教室信息 -->
<script id="view-lesson-template" type="text/x-handlebars-template">
	<form class="form-horizontal form-editor form-editor-lesson">
		<input type="hidden" name="id" value="{{id}}">
		<div class="row">
			<div class="col-sm-4">
				<div class="form-group">
					<label class="col-sm-4 control-label" for="type">课程类型</label>
					<div class="col-sm-8">
						<select name="type" id="type" class="chosen-select" data-entity="com.app.miwawa.api.system.entity.config.Codec">
							{{chosen type}}
						</select>
					</div>
				</div>
			</div>
			<div class="col-sm-4">
				<div class="form-group">
					<label class="col-sm-4 control-label required" for="name">课程名称</label>
					<div class="col-sm-8">
						<input name="name" id="name" type="text" class="form-control" required="required" value="{{name}}">
					</div>
				</div>
			</div>
			<div class="col-sm-4">
				<div class="form-group">
					<label class="col-sm-4 control-label" for="code">课程编号</label>
					<div class="col-sm-8">
						<input name="code" id="code" type="text" class="form-control" value="{{code}}">
					</div>
				</div>
			</div>
		</div>
		<div class="row">
			<div class="col-sm-4">
				<div class="form-group">
					<label class="col-sm-4 control-label required" for="moonageMin">适用月龄</label>
					<div class="col-sm-8">
						<div class="input-group">
							<input type="text" name="moonageMin" id="moonageMin" class="form-control" required="required" value="{{moonageMin}}"/>
							<span class="input-group-addon no-border-radius">到</span>
							<input type="text" name="moonageMax" id="moonageMax" class="form-control" required="required" value="{{moonageMax}}"/>
						</div>
					</div>
				</div>
			</div>
			<div class="col-sm-4">
				<div class="form-group">
					<label class="col-sm-4 control-label required" for="period">默认课时</label>
					<div class="col-sm-8">
						<div class="input-group">
							<input type="text" name="period" id="period" class="form-control" required="required" value="{{period}}"/>
							<span class="input-group-addon">课时</span>
						</div>
					</div>
				</div>
			</div>
		</div>
		
		<div class="row">
			<div class="col-sm-12">
				<div class="form-group form-richedit">
					<div class="col-sm-12">
						<label class="control-label" for="description">课程介绍</label>
						<textarea id="description" name="description" class="form-control">{{description}}</textarea>
					</div>
				</div>
			</div>
		</div>
		
		<div class="widget-footer editor-footer-sm">
			<button type="button" class="btn btn-danger btn-sm" data-toggle="tooltip" data-placement="top" title="取消" onclick="handlerCancel(this);" data-refresh-table="#table-lesson">
				<i class="glyphicon glyphicon-remove"></i>
			</button>
			<button type="button" class="btn btn-primary btn-sm" data-toggle="tooltip" data-placement="top" title="保存" onclick="handlerSubmit(this, '#editor-form-lesson', '.form-editor-lesson');" data-refresh-table="#table-lesson">
				<i class="glyphicon glyphicon-ok"></i>
			</button>
		</div>
	</form>
</script>